home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmAbout
- BorderStyle = 3 'Fixed Dialog
- Caption = "Form2"
- ClientHeight = 2535
- ClientLeft = 3150
- ClientTop = 2970
- ClientWidth = 4785
- ForeColor = &H00000000&
- Height = 2940
- Left = 3090
- LinkTopic = "Form2"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2535
- ScaleWidth = 4785
- ShowInTaskbar = 0 'False
- Top = 2625
- Width = 4905
- Begin VB.CommandButton Command1
- Cancel = -1 'True
- Caption = "&Ok"
- Height = 375
- Left = 3240
- TabIndex = 2
- Top = 2040
- Width = 1335
- End
- Begin VB.Label Label7
- AutoSize = -1 'True
- Height = 195
- Left = 870
- TabIndex = 8
- Top = 840
- Width = 3705
- WordWrap = -1 'True
- End
- Begin VB.Label Label6
- Height = 255
- Left = 3750
- TabIndex = 7
- Top = 1560
- Width = 855
- End
- Begin VB.Label Label5
- Height = 255
- Left = 3750
- TabIndex = 6
- Top = 1320
- Width = 855
- End
- Begin VB.Label Label4
- Caption = "Page File Size:"
- Height = 255
- Index = 1
- Left = 840
- TabIndex = 5
- Top = 1560
- Width = 2895
- End
- Begin VB.Label Label4
- Caption = "Physical Memory Available to Windows:"
- Height = 255
- Index = 0
- Left = 840
- TabIndex = 4
- Top = 1320
- Width = 2895
- End
- Begin VB.Line Line1
- BorderColor = &H00FFFFFF&
- Index = 1
- X1 = 840
- X2 = 4550
- Y1 = 1215
- Y2 = 1215
- End
- Begin VB.Line Line1
- Index = 0
- X1 = 840
- X2 = 4550
- Y1 = 1200
- Y2 = 1200
- End
- Begin VB.Image Image1
- Height = 735
- Left = 120
- Top = 120
- Width = 615
- End
- Begin VB.Label Label3
- Height = 255
- Left = 840
- TabIndex = 3
- Top = 600
- Width = 3735
- End
- Begin VB.Label Label2
- Height = 255
- Left = 840
- TabIndex = 1
- Top = 360
- Width = 3735
- End
- Begin VB.Label Label1
- Height = 255
- Left = 840
- TabIndex = 0
- Top = 120
- Width = 3735
- End
- Attribute VB_Name = "frmAbout"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- ' See the AboutForm function
- Private Declare Sub GlobalMemoryStatus Lib "kernel32" (lpBuffer As MEMORYSTATUS)
- Private Type MEMORYSTATUS
- dwLength As Long
- dwMemoryLoad As Long
- dwTotalPhys As Long
- dwAvailPhys As Long
- dwTotalPageFile As Long
- dwAvailPageFile As Long
- dwTotalVirtual As Long
- dwAvailVirtual As Long
- End Type
- ' Opens a modal About box.
- Public Sub AboutForm(Optional icon As Variant, Optional note As Variant)
- Dim ms As MEMORYSTATUS
- Dim i As Integer
- On Error Resume Next
- If VarType(note) <> vbString Or note = "" Then
- i = -Label7.Height
- Label7.Visible = False
- Else
- i = Label7.Height
- Label7.Caption = note
- i = Label7.Height - i
- End If
- label4(0).Top = label4(0).Top + i
- label4(1).Top = label4(1).Top + i
- Label5.Top = Label5.Top + i
- Label6.Top = Label6.Top + i
- Command1.Top = Command1.Top + i
- Line1(0).Y1 = Line1(0).Y1 + i
- Line1(0).Y2 = Line1(0).Y2 + i
- Line1(1).Y1 = Line1(1).Y1 + i
- Line1(1).Y2 = Line1(1).Y2 + i
- Me.Height = Me.Height + i
-
- Me.Top = (Screen.Height - Me.Height) / 2
- Me.Left = (Screen.Width - Me.Width) / 2
- Me.Caption = "About " & App.ProductName
- If Not IsMissing(icon) Then
- Me.icon = icon
- Image1 = icon
- End If
- Label1.Caption = App.ProductName + " Version " & App.Major & "." & App.Minor & "." & App.Revision
- Label2.Caption = App.LegalCopyright
- label3.Caption = App.LegalTrademarks
- Call GlobalMemoryStatus(ms)
- Label5.Caption = Format$((ms.dwTotalPhys / 1024), "###,###") & " KB"
- Label6.Caption = Format$(((ms.dwTotalPageFile - ms.dwAvailPageFile) / 1024), "###,###") & " KB"
- Me.Show vbModal
- End Sub
- Private Sub Command1_Click()
- Unload Me
- End Sub
- Private Sub Form_Load()
- End Sub
-